package com.rtx.edi.model.base;

import java.util.Map;

import com.rtx.api.annotation.Exclude;

/**
 * @author Zy
 */
public class Page extends PageBean {

    @Exclude
    private Integer pageNum;

    @Exclude
    private Integer currentPage;

    /***
     * 记录行 - 当前页起始行
     */
    @Exclude
    private Integer s_currentPage;

    /***
     * 记录行 - 当前页截止行
     * 字段命名比较混乱 增加注释说明 
     */
    @Exclude
    private Integer s_pageSize;

    @Exclude
    private String spiltChars;

    /**
     * 配置排序,获取配置列表的排序,使用于查询sql中排序
     */
    @Exclude
    private String configureSorting;

    /**
     * 配置统计sql字段
     */
    @Exclude
    private String totalSqlText;

    private Map totalData;

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;

        if (currentPage == null) {
            super.setCurPage(0);
        } else {
            //MySql使用父类的页码
            super.setCurPage(currentPage);
        }

    }

    public Integer getS_currentPage() {
        return s_currentPage;
    }

    public void setS_currentPage(Integer s_currentPage) {

        this.s_currentPage = s_currentPage;
    }

    public Integer getS_pageSize() {
        return s_pageSize;
    }

    public void setS_pageSize(Integer s_pageSize) {
        this.s_pageSize = s_pageSize;
    }

    public String getSpiltChars() {
        return spiltChars;
    }

    public void setSpiltChars(String spiltChars) {
        this.spiltChars = spiltChars;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public String getConfigureSorting() {
        return configureSorting;
    }

    public void setConfigureSorting(String configureSorting) {
        this.configureSorting = configureSorting;
    }

    public String getTotalSqlText() {
        return totalSqlText;
    }

    public void setTotalSqlText(String totalSqlText) {
        this.totalSqlText = totalSqlText;
    }

    public Map getTotalData() {
        return totalData;
    }

    public void setTotalData(Map totalData) {
        this.totalData = totalData;
    }
}
